package com.honglu.backend.dao;

import com.honglu.backend.entity.AppVersion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * AppVersionDao数据库操作接口类bean
 * @author tb
 * @date Fri Jun 16 12:42:33 CST 2017
 **/
@Mapper
public interface AppVersionDao{

	/**
	 * 查询 app 版本 集合
	 * @param params
	 * @return
	 */
	List<AppVersion> selectEntity(Map<String, Object> params);

	/**
	 * 查询 app版本count
	 * @param params
	 * @return
	 */
	Integer selectCount(Map<String, Object> params);

	/**
	 * 新增版本
	 * @param appVersion
	 * @return
	 */
	Integer saveEntity(AppVersion appVersion);

	/**
	 * 删除版本
	 * @param appVersion
	 * @return
	 */
	Integer updateEntity(AppVersion appVersion);

}